package com.heimdallr.rbac.permission.entity;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @author Administrator
 * @date 2016/8/3
 */
public class GroupEntity implements Serializable {

    private int id;
    private String name;
    private String remark;
    private List<Integer> roleIdList;
    private List<RoleEntity> roleEntityList;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<RoleEntity> getRoleEntityList() {
        return roleEntityList;
    }

    public void setRoleEntityList(List<RoleEntity> roleEntityList) {
        this.roleEntityList = roleEntityList;
    }

    public List<Integer> getRoleIdList() {
        return roleIdList;
    }

    public void setRoleIdList(List<Integer> roleIdList) {
        this.roleIdList = roleIdList;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        GroupEntity entity = (GroupEntity) o;

        return id == entity.id;
    }

    @Override
    public int hashCode() {
        return id;
    }
}
